<template>
  <div class="header">
    <router-link :to="'/'">
      <div class="header-left">
        <div class="iconfont back-icon">&#xe641;</div>
      </div>
    </router-link>
    <div class="header-input">
      <input class="search-input" type="text" placeholder="输入城市名或拼音" />
    </div>
    <router-link :to="'/login'">
      <div class="header-right">
        <span class="iconfont arrow-icon">跳转</span>
      </div>
    </router-link>
  </div>
</template>

<script>
export default {
  name: 'HomeHeader',
  computed: {
    
  }
}
</script>

<style lang="stylus" scoped>
  @import '~@/assets/styles/varibles.styl'
  .header
    display flex
    line-height $headerHeight
    background $c00b
    color fontColorW
    .header-left
      width .64rem
      float left
    .header-input
      flex 1
      line-height .64rem
      height .64rem
      margin-top .12rem
      margin-left .2rem
      background $cfff
      color #ccc
      border-radius .1rem
    .header-right
      width 1.24rem
      text-align center
      float right
    .header-right:hover{opacity:1;}
    .header-right:active{opacity:.6;}
</style>